<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="fontface/iconfont.css">
    <link rel="stylesheet" href="css/swiper.min.css">
    <link rel="stylesheet" href="css/video-js.min.css">

    <!-- <link rel="stylesheet" href="css/share.css"> -->
    <link rel="stylesheet" href="css/main.css">
    <link rel="stylesheet" href="css/ly.css">

    <script src="js/jquery-1.11.0.js"></script>
    <script src="js/share.js"></script>
    <script src="js/swiper.js"></script>
    <script src="js/video.min.js"></script>

    <title>新增班级</title>
</head>

<body>
<div class="flex">
    <!--菜单-->
    <div class="cp-menu">
        <div class="cp-menu-icon flex flex-pac cff">
            教师端
        </div>
        <ul class="nav">
            <li class="nav-item">
                <div class="flex flex-ac plr20">
                    <img class="mr10"
                         src=""
                         alt="">
                    <span class="flex-f1">任务管理</span> <i class="lxjiconfont xiangyou1"></i>
                </div>
                <ul class="sub active">
                    <li><a href="查看专题.html" class="sub-item active">查看专题</a></li>
                    <li><a href="查看任务.html" class="sub-item">查看任务</a></li>
                </ul>
            </li>
            <li class="nav-item">
                <div class="flex flex-ac plr20">
                    <img class="mr10"
                         src=""
                         alt="">

                    <span class="flex-f1">班级管理</span> <i class="lxjiconfont xiangyou1"></i>
                </div>
                <ul class="sub">
                    <li><a href="查看班级.html" class="sub-item active">查看班级</a></li>
                    <li><a href="绑定学生.html" class="sub-item">绑定学生和专题</a></li>
                </ul>
            </li>
            <li class="nav-item">
                <div class="flex flex-ac plr20">
                    <img class="mr10"
                         src=""
                         alt="">

                    <span class="flex-f1">学生管理</span> <i class="lxjiconfont xiangyou1"></i>
                </div>
                <ul class="sub">
                    <li><a href="" class="sub-item active">学生管理</a></li>
                </ul>
            </li>
            <li class="nav-item">
                <div class="flex flex-ac plr20">
                    <img class="mr10"
                         src=""
                         alt="">

                    <span class="flex-f1">设备管理</span> <i class="lxjiconfont xiangyou1"></i>
                </div>
                <ul class="sub">
                    <li><a href="" class="sub-item active">设备管理</a></li>
                </ul>
            </li>
        </ul>
    </div>
    <!--内容-->
    <div class="cp-container">
        <!--头部-->
        <header class="cp-header flex flex-ac">
            <div class="cp-header-content flex-f1">
                新增班级
            </div>
            <img class="cp-header-img" src="./images/banner.png" alt="">
            <p class="cp-header-name mr10">liyang</p>
            <input type="submit" class="login-out flex flex-pac" value="退出">
        </header>
        <!--面包屑-->
        <div class="el-breadcrumb flex flex-ac">
            班级管理 <span>/</span> 新增班级
        </div>
        <!--新增专题-->
        <div class="bi-info">
            <from class="pc-from">

                <lable class="mb30 flex flex-ac">
                    <p class="il-left">班级名称：</p>
                    <input class="il-right" type="text" placeholder="请输入班级名称"/>
                </lable>
                <lable class="mb30 flex flex-ac">
                    <p class="il-left">班级介绍：</p>
                    <input class="il-right" type="text" placeholder="请输入班级介绍"/>
                </lable>
                <lable class="mb30 flex flex-ac">
                    <p class="il-left"></p>
                    <input class="submit" type="submit" value="提交">

                </lable>
            </from>
        </div>
    </div>
</div>

</body>

</html>
<script>
    $(function () {
        //从url里边拿数据
        function GetQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]);
            return null;
        }

        var navIndex = 0, subItemIndex = 0;
        navIndex = GetQueryString("nav");
        subItemIndex = GetQueryString("sub");
        console.log($('.nav .nav-item').eq(navIndex).addClass("active").find('.sub-item').eq(subItemIndex).addClass("active"))
        $('.nav .nav-item').click(function () {
            $(this).children().slideDown(1000)
            $(this).siblings().children(".sub").slideUp(1000)
        })
    })
</script>
